package com.itheima.consumer.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.dubbo.api.HelloApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Consumer {

    @Reference
    public HelloApi helloApi;
    @GetMapping("/config")
    public String abc(String usrename){
        return helloApi.hellodubbo(usrename);
    }
}
